﻿using System;
using System.Collections.Generic;
using System.Text;
using XhPaper.基本图形;

namespace XhPaper
{
    public class MyTableTxj:MyTableBase
    {
        MyDuanZi[] Dz = new MyDuanZi[2];
        string[] str = new string[] { "485A", "485B" };
        public MyDuanZi[] Dz1
        {
            get { return Dz; }
            //set { Dz = value; }
        }
         public MyTableTxj()
        {

        }
        public MyTableTxj(double left, double top, MyAutoCadObjectBase container)
            :base(left + container.Left, container.Top+top, container)
        {
            ITable = new MyXmlTabledyMini();
            m_HangLines = ITable.GetHangLines(this);
            m_LieLines = ITable.GetLieLines(this);
            ITable.GetNameTextDic(this, out m_TableNameDic, out m_TableTextDic);
            for (int i = 0; i < 2; i++)
            {
                MyPoint p1;
                MyText text;
                p1 = m_HangLines[1].P1.inflate(25, -(14 + i * 10));
                text = new MyText(p1, str[i], this);
                Dz[i] = new MyDuanZi(p1, text, this);
            }
        }
        public override void MyDraw(MyCadDll.MyCad mycad)
        {
            base.MyDraw(mycad);
            foreach (MyDuanZi d in Dz1)
            {
                d.MyDraw(mycad);
            }
        }
    }
}
